package com.qiaofang.dataprocessing.stub.facade;

import com.qiaofang.common.request.DataRequest;
import com.qiaofang.common.request.PageRequest;
import com.qiaofang.common.response.DataResultResponse;
import com.qiaofang.dataprocessing.stub.bean.PageCustomizeDTO;
import com.qiaofang.dataprocessing.stub.bean.request.PropertyEntrustRequest;
import com.qiaofang.dataprocessing.stub.bean.response.PropertyEntrustDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: youqing.yang
 * @Create: 2020/12/15 15:40
 * @Description:
 **/
@FeignClient(name = "dataprocessing", url = "${feign.url.dataprocessing}")
@RequestMapping("/propertyEntrust")
@Api(tags = "propertyEntrust", description = "小程序房源委托")
public interface MiniProgramPropertyEntrustFacade {

    @RequestMapping(value = "/getPropertyEntrustPage", method = RequestMethod.POST)
    @ApiOperation(value = "获取房源委托列表", notes = "获取房源委托列表")
    DataResultResponse<PageCustomizeDTO<PropertyEntrustDTO>> getPropertyEntrustPage(PageRequest<PropertyEntrustRequest> request);

    @RequestMapping(value = "/acceptEntrustMyself", method = RequestMethod.POST)
    @ApiOperation(value = "我受理", notes = "我受理")
    DataResultResponse<Object> acceptEntrustMyself(DataRequest<Long> request);

}
